CONTENTS | INDEX | PREV | NEXT
 tan
 ftan 

 NAME
  tan    - return tan of a double quantity
  ftan   - return tan of a float quantity

 SYNOPSIS
  #include <math.h>

  double a = tan(b);
  double b;

  float  c = ftan(d);
  float  d;

 FUNCTION
  Returns the tan of a floating point quantity

 EXAMPLE
  /*
   *  compile with the math library -lm
   */

  #include <math.h>
  #include <stdio.h>

  main()
  {
      {
      double a = tan(0.25);
      printf("tan 0.25 = %lfn", a);     /*  0.2553  */
      }
      {                       /*  less accuracy   */
      float a = ftan(0.25);
      printf("tan 0.25 = %lfn", (double)a);
      }
      return(0);
  }

 INPUTS
  double b;   double floating point value
  float  d;   float  floating point value

 RESULTS
  double a;   result double floating point value
  float  c;   result float  floating point value